wxapp.logic.author = function() {
    var t = function() {
        tywx.NotificationCenter.trigger(tywx.EventType.EVT_APP_AUTHOR_AFTER);
    };
    return {
        init: function() {
            var e = new wxapp.ClsLib.WxStopwatch(), i = cc.view.getFrameSize(), o = 0, n = 0, a = i.width, c = i.height, l = 0, p = 0, s = 0, r = 0, f = 0;
            c / a < 640 / 1136 ? o = (a - 1136 * (f = c / 640)) / 2 : n = (c - 640 * (f = a / 1136)) / 2, 
            l = 458 * f + o, p = 512 * f + n, s = 253 * f, r = 86 * f, wx.getSetting({
                success: function(i) {
                    if (i.authSetting["scope.userInfo"]) wxapp.tools.bilog.clickStat(tywx.clickStatEventType.clickStatEventTypeAuthorization_ok, []), 
                    wxapp.model.loading.isAuthorizeLogin = !1, wxfish.ClsLib.LoadingScene.scene.loadingNode && wxfish.ClsLib.LoadingScene.scene.loadingNode.enableProgress(), 
                    wx.getUserInfo({
                        lang: "zh_CN",
                        withCredentials: !1,
                        success: function(e) {
                            wxapp.appData.wxUserInfo = e.userInfo, t();
                        },
                        fail: function(t) {}
                    }); else {
                        wxapp.tools.bilog.clickStat(tywx.clickStatEventType.clickStatEventTypeAuthorizationStart, []), 
                        wxapp.model.loading.isAuthorizeLogin = !0;
                        var o = wx.createUserInfoButton({
                            type: "image",
                            image: wxapp.Const.cdnPath + "web/loading/wxfish_btn_yellow_long.png",
                            style: {
                                left: l,
                                top: p,
                                width: s,
                                height: r,
                                lineHeight: 40,
                                backgroundColor: "#ff0000",
                                color: "#ffffff",
                                textAlign: "center",
                                fontSize: 16,
                                borderRadius: 4
                            }
                        });
                        o.onTap(function(i) {
                            -1 == i.errMsg.indexOf("fail") && (wxapp.appData.wxUserInfo = i.userInfo, wxapp.tools.bilog.clickStat(tywx.clickStatEventType.clickStatEventTypeAuthorizationSuccess, []), 
                            o.hide(), o.destroy(), e.tlog("app", "授权验证"), t());
                        });
                    }
                },
                fail: function(t) {
                    wxapp.tools.bilog.clickStat(tywx.clickStatEventType.clickStatEventTypeAuthorization_fail, []);
                }
            });
        }
    };
}();